package model

import (
	"github.com/zeromicro/go-zero/core/stores/cache"
	"github.com/zeromicro/go-zero/core/stores/sqlx"
)

var _ EstatePartitionModel = (*customEstatePartitionModel)(nil)

type (
	// EstatePartitionModel is an interface to be customized, add more methods here,
	// and implement the added methods in customEstatePartitionModel.
	EstatePartitionModel interface {
		estatePartitionModel
	}

	customEstatePartitionModel struct {
		*defaultEstatePartitionModel
	}
)

// NewEstatePartitionModel returns a model for the database table.
func NewEstatePartitionModel(conn sqlx.SqlConn, c cache.CacheConf, opts ...cache.Option) EstatePartitionModel {
	return &customEstatePartitionModel{
		defaultEstatePartitionModel: newEstatePartitionModel(conn, c, opts...),
	}
}
